package com.yami.shop.bean.app.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yami.shop.common.serializer.json.ImgJsonSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
public class MyNewOrderDto {

    @Schema(description = "订单号",required=true)
    private String orderNumber;

    @Schema(description = "商品名称")
    private String prodName;

    @Schema(description = "商品总数",required=true)
    private Integer productNums;

    @Schema(description = "商品图片", required = true)
    @JsonSerialize(using = ImgJsonSerializer.class)
    private String pic;

    @Schema(description = "商品价格", required = true)
    private Double price;

    @Schema(description = "总价",required=true)
    private Double actualTotal;

    @Schema(description = "订单支付时间")
    private Date payTime;

    @Schema(description = "订单创建时间",required=true)
    private Date createTime;
}
